package pers.fjl.test.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import pers.fjl.common.po.Report1;
import pers.fjl.common.vo.Legend;
import pers.fjl.test.service.ReportService;

import javax.annotation.Resource;
import java.util.List;

/**
 * 数据统计模块
 *
 * @author fangjiale 2020年1月8日
 */

@Api(value = "数据统计模块", description = "数据统计模块的接口信息")
@RequestMapping("/statistics")
@RestController
@CrossOrigin
public class ReportController {
    @Resource
    private ReportService reportService;

    @GetMapping("/report1")
    public List<Object> report1(){
        return reportService.findReport();
    }

    @GetMapping("/getName")
    public Legend getName(){
        return reportService.getName();
    }

}
